package com.agileboot.attendance.domain.supplier.db;

import com.agileboot.common.core.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 供应商信息表
 * </p>
 *
 * @author agileboot
 * @since 2023-03-14
 */
@Getter
@Setter
@TableName("att_supplier")
@ApiModel(value = "AttSupplierEntity对象", description = "供应商信息表")
public class AttSupplierEntity extends BaseEntity<AttSupplierEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("供应商ID")
    @TableId(value = "supplier_id", type = IdType.AUTO)
    private Long supplierId;

    @ApiModelProperty("供应商名称")
    @TableField("supplier_name")
    private String supplierName;

    @ApiModelProperty("供应商编码")
    @TableField("supplier_code")
    private String supplierCode;

    @ApiModelProperty("联系人姓名")
    @TableField("contact_name")
    private String contactName;

    @ApiModelProperty("联系人电话")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty("联系人邮箱")
    @TableField("contact_email")
    private String contactEmail;

    @ApiModelProperty("供应商地址")
    @TableField("address")
    private String address;

    @ApiModelProperty("状态（0正常 1停用）")
    @TableField("status")
    private String status;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @Override
    public Serializable pkVal() {
        return this.supplierId;
    }
} 